-- GENERATED SPELL FOR [Chillmere Coastrunner] --


function spell0_24459(pUnit, Event) --@Instant Poison,n/a--
pUnit:FullCastSpellOnTarget(28428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24459', 623, 1)
end

function spell1_24459(pUnit, Event) --@Rupture,n/a--
pUnit:FullCastSpellOnTarget(14874,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24459', 10000, 1)
end

function Sorts_24459(pUnit, Event)
local choix_sorts_24459 = math.random(0, 1)
if choix_sorts_24459 == 0 then
pUnit:RegisterEvent('spell0_24459', 1, 1)
end
if choix_sorts_24459 == 1 then
pUnit:RegisterEvent('spell1_24459', 1, 1)
end
end

function mob24459_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24459', math.random(1500, 3000), 1)
end

function mob24459_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24459_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24459_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24459, 1, 'mob24459_Action')
RegisterUnitEvent(24459, 2, 'mob24459_Leave')
RegisterUnitEvent(24459, 3, 'mob24459_Kill')
RegisterUnitEvent(24459, 4, 'mob24459_Die')
